package com.amit.hibernate;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;

public class Lab1Client1 
{
	public static void main(String[] args) 
	{
		SessionFactory sessionfactory=CHibernateutil.getfactory();
		Session session=sessionfactory.openSession();
		Transaction tx=session.beginTransaction();
		
		Customer cust=new Customer("amit", "lko", 1233, 23.0);
		session.save(cust);
		System.out.println("1 Record inserted ");
		tx.commit();
		session.close();
				
	}
}
